package com.wg.msorderds.service;



import com.wg.msorderds.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "ms-product-g-z") // 服务名称，需要与注册中心的服务名称一致
public interface ProductFeignClient {

    @GetMapping("/product/select/{id}")
    Product getProductById(@PathVariable("id") Integer id);
    @GetMapping("/product/select/{id}")
    String getProductByIdAsString(@PathVariable("id") Integer id);
}
